import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        int[] array = null;
        //array 这个引用不指向任何对象
        int[] array1 = {1,2,4,3};
        int[] ret = new int[5];
        ret = Arrays.copyOf(array1,array1.length*2);
        System.out.println(Arrays.toString(ret));
        Arrays.sort(array1);
        System.out.println(Arrays.toString(array1));

        int[] array3 = {1,2,3,45,6,76};
        int[] array4 = array3.clone();  //浅拷贝
        System.out.print(array3);//[I@1b6d3586
        System.out.print(array4);//[I@4554617c
        System.out.println();

        int[] array5 = {1,2,3,4,5,6};
        int[] array6;
        array6 = array5;
        System.out.println(Arrays.toString(array6));
    }
}
